package util;

import core.TestTrajIndex;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class TestParser extends TestCase {
	NBGStrParser parser;
	NBGStrParser parser1;
	String line1 = "point	2	4	0	3	8730.902134940789	16587.551426015143	1009.0	7.34407398E8	8752	16404";
	String line2 = "point	3	5	0	4	10951.972591360232	21136.32532184042	672.0	2.92502926E8	10938	21111";
	public TestParser(String name) {
		super(name);
		parser = new NBGStrParser(line1);
		parser1 = new NBGStrParser(line2);
	}
	public void testNBGStrParser() {
//		fail("Not yet implemented");
		System.out.println(parser1.getState());
		System.out.println(parser1.getOid());
		System.out.println(parser1.getTimepoint());
		System.out.println(parser1.getSpeed());
		System.out.println(parser1.getRoadid());
		System.out.println(parser1.getApproachingJunctionx());
		System.out.println(parser1.getApproachingJunctiony());
	}
	public static Test suite() {
		TestSuite suite = new TestSuite();
		// suite.addTest(new TestJunctions("testCollection"));

		// suite.addTest(new TestJunctions("testJunction"));

//		suite.addTest(new TestJunctions("testJunctions"));
		suite.addTest(new TestParser("testNBGStrParser"));
		return suite;
	}

}
